package com.xckj.cycling.viewmodel

import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.xckj.cycling.model.NavigationToStartModel

/**
 * 导航到起点
 */
class NavigationToStartViewModel : ViewModel() {

    val liveData = MutableLiveData<NavigationToStartModel>()

    /**
     * 导航结束
     */
    val navigationEnd = MutableLiveData<Boolean>()
    fun setRoute(model: NavigationToStartModel) {
        navigationEnd.value = false
        liveData.value = model
    }

    fun navigationEnd(b: Boolean) {
        navigationEnd.value = b
    }
}